<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>停止所有链式调用</title>
    <style>
        .box {
            width: 100px;
            height: 100px;
            display: flex;
            flex-flow: row;
            align-items: center;
            text-align: center;
            -webkit-border-radius: 70px;
            -moz-border-radius: 70px;
            border-radius: 70px;
            position: absolute;
            border: 1px solid black;
            font-size: 10px;
            padding: 20px;
        }
        #target1 {
            background: #fcc;
        }
        #target2 {
            background: #cfc;
        }
    </style>
    <script src="../RequestAnimationFrame.js"></script>
    <script src="../Tween.js"></script>
</head>
<body>
    <div>
        <button id="start">开始</button>
        <button id="end">结束</button>
    </div>
    <div id="target1" class="box" data-x="0" style="left:0px; top:50px">yoyo重复一次</div>
    <div id="target2" class="box" data-x="0" style="left:0px; top:200px;">yoyo无限循环</div>
<script src="./index.js"></script>
</body>
</html>